package com.aliyun.order.client.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 订单详情 DTO
 *
 * 
 * @date 2024/11/29
 */
@Data
public class OrderDetailDTO implements Serializable {

    private static final long serialVersionUID = 3713853615099711997L;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 创建时间
     */
    private Date gmtCreate;

    /**
     * 用户 ID
     */
    private Long userId;

    /**
     * 金额
     */
    private Long amount;

    /**
     * 状态 @see
     * {@link com.aliyun.order.client.constants.OrderStatus}
     */
    private Integer status;

    /**
     * 关闭时间
     */
    private Date closeTime;

    /**
     * 订购项 dtolist
     */
    private List<OrderItemDTO> orderItemDTOList;

    /**
     * 订单项 DTO
     *
     * 
     * @date 2024/11/29
     */
    @Data
    public static class OrderItemDTO implements Serializable {

        private static final long serialVersionUID = 4982410041813948693L;

        /**
         * id
         */
        private Long orderItemId;

        /**
         * 创建时间
         */
        private Date gmtCreate;

        /**
         * 金额
         */
        private Long amount;

        /**
         * 订单 ID
         */
        private Long orderId;

        /**
         * 商品 ID
         */
        private Long productId;

        /**
         * 数量
         */
        private Integer quantity;
    }
}
